/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package homework.demo02;

/**
 *
 * @author new1
 */
public class ArrayList {

    private String name;
    private String phone;
    private String email;

    public String getname() {
        return name;
    }

    public String getphone() {
        return phone;
    }

    public String getemail() {
        return email;
    }

    public void setname(String  name) {
        this.name = name;
    }

    public void setemail(String email) {
        this.email = email;
    }

    public void setphone(String phone) {
        this.phone = phone;
    }
}


class people1 extends ArrayList {

    public static void main(String[] args) {
        people1 euro = new people1();
        euro.setname("张三");
        euro.setemail("54555959");
        euro.setphone("12355887455");
        System.out.println("名字是:" + euro.getname());
        System.out.println("邮箱是:" + euro.getemail());
        System.out.println("电话是:" + euro.getphone());



    }
}
class people2 extends ArrayList {

    public static void main(String[] args) {
        people2 euro = new people2();
        euro.setname("李四");
        euro.setemail("4885485");
        euro.setphone("7441565625455");
        System.out.println("名字是:" + euro.getname());
        System.out.println("邮箱是:" + euro.getemail());
        System.out.println("电话是:" + euro.getphone());



    }
}
class people3 extends ArrayList {

    public static void main(String[] args) {
        people3 euro = new people3();
        euro.setname("王五");
        euro.setemail("4112119");
        euro.setphone("141411885645");
        System.out.println("名字是:" + euro.getname());
        System.out.println("邮箱是:" + euro.getemail());
        System.out.println("电话是:" + euro.getphone());



    }
}
